package com.wuyoucar.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 保单表
 */
public class TPolicy implements Serializable {
    private Integer policyno;//保单号
    private String insuredpersonname;//被保人姓名
    private Integer safestate;//保险状态
    private String orderid;//订单号
    private Date effecttime;//生效时间
    private Date createtime;//创建时间
    private Date lastmodifytime;//最后修改时间
    private Integer userid;//用户id
    private Date expiretime; // 到期时间
    private List<TOrder> tOrder; //订单表
    private List<TSafetypeitem> tSafetypeitem; //险种字典表
    private Integer safetypeitemid; //险种id
    private Double money; //保险金额

    public TPolicy() {
    }

    public TPolicy(Integer policyno, String insuredpersonname, Integer safestate, String orderid, Date effecttime, Date createtime, Date lastmodifytime, Integer userid, Date expiretime, List<TOrder> tOrder, List<TSafetypeitem> tSafetypeitem, Integer safetypeitemid, Double money) {
        this.policyno = policyno;
        this.insuredpersonname = insuredpersonname;
        this.safestate = safestate;
        this.orderid = orderid;
        this.effecttime = effecttime;
        this.createtime = createtime;
        this.lastmodifytime = lastmodifytime;
        this.userid = userid;
        this.expiretime = expiretime;
        this.tOrder = tOrder;
        this.tSafetypeitem = tSafetypeitem;
        this.safetypeitemid = safetypeitemid;
        this.money = money;
    }

    public TPolicy(String insuredpersonname, Integer safestate, String orderid,
                   Date effecttime, Date createtime, Date lastmodifytime, Integer userid, Date expiretime, Integer safetypeitemid,Double money) {
        this.insuredpersonname = insuredpersonname;
        this.safestate = safestate;
        this.orderid = orderid;
        this.effecttime = effecttime;
        this.createtime = createtime;
        this.lastmodifytime = lastmodifytime;
        this.userid = userid;
        this.expiretime=expiretime;
        this.safetypeitemid = safetypeitemid;
        this.money = money;
    }
    public TPolicy(Integer policyno, String insuredpersonneme, Integer safestate, String orderid,
                    Date effecttime, Date createtime, Date lastmodifytime, Integer userid) {
        this.policyno = policyno;
        this.insuredpersonname = insuredpersonneme;
        this.safestate = safestate;
        this.orderid = orderid;
        this.effecttime = effecttime;
        this.createtime = createtime;
        this.lastmodifytime = lastmodifytime;
        this.userid = userid;
    }

    public TPolicy(Integer policyno, String insuredpersonnerame,  Integer safestate, String orderid,
                   Date effecttime, Date createtime, Date lastmodifytime, Integer userid,
                   Date expiretime, List<TOrder> tOrder, List<TSafetypeitem> tSafetypeitem) {
        this.policyno = policyno;
        this.insuredpersonname = insuredpersonname;
        this.safestate = safestate;
        this.orderid = orderid;
        this.effecttime = effecttime;
        this.createtime = createtime;
        this.lastmodifytime = lastmodifytime;
        this.userid = userid;
        this.expiretime = expiretime;
        this.tOrder = tOrder;
        this.tSafetypeitem = tSafetypeitem;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getSafetypeitemid() {
        return safetypeitemid;
    }

    public void setSafetypeitemid(Integer safetypeitemid) {
        this.safetypeitemid = safetypeitemid;
    }

    public Integer getPolicyno() {
        return policyno;
    }

    public void setPolicyno(Integer policyno) {
        this.policyno = policyno;
    }

    public String getInsuredpersonname() {
        return insuredpersonname;
    }

    public void setInsuredpersonname(String insuredpersonname) {
        this.insuredpersonname = insuredpersonname;
    }

    public Integer getSafestate() {
        return safestate;
    }

    public void setSafestate(Integer safestate) {
        this.safestate = safestate;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public Date getEffecttime() {
        return effecttime;
    }

    public void setEffecttime(Date effecttime) {
        this.effecttime = effecttime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getLastmodifytime() {
        return lastmodifytime;
    }

    public void setLastmodifytime(Date lastmodifytime) {
        this.lastmodifytime = lastmodifytime;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Date getExpiretime() {
        return expiretime;
    }

    public void setExpiretime(Date expiretime) {
        this.expiretime = expiretime;
    }

    public List<TOrder> gettOrder() {
        return tOrder;
    }

    public void settOrder(List<TOrder> tOrder) {
        this.tOrder = tOrder;
    }

    public List<TSafetypeitem> gettSafetypeitem() {
        return tSafetypeitem;
    }

    public void settSafetypeitem(List<TSafetypeitem> tSafetypeitem) {
        this.tSafetypeitem = tSafetypeitem;
    }

    @Override
    public String toString() {
        return "TPolicy{" +
                "policyno=" + policyno +
                ", insuredpersonname='" + insuredpersonname + '\'' +
                ", safestate=" + safestate +
                ", orderid='" + orderid + '\'' +
                ", effecttime=" + effecttime +
                ", createtime=" + createtime +
                ", lastmodifytime=" + lastmodifytime +
                ", userid=" + userid +
                ", expiretime=" + expiretime +
                ", tOrder=" + tOrder +
                ", tSafetypeitem=" + tSafetypeitem +
                '}';
    }
}
